"""

@author: baoq
@email: q.bao@hzgosun.com
@file: policeIncidentManagePage.py
@time: 2019/5/11 14:24

警情管理页面

"""

from common.poium import Page
from common.vue.label import ElementType as ET
from common.vue.label import ElementBaseLabel
from common.vue.search import VueSearch
from common.vue.button import VueButton
from common.vue.table import VueTable
from common.vue.element import VueElements


class SearchTools(VueSearch):
    start_time = ElementBaseLabel(ET.DATE_PICKER, "时间")
    end_time = ElementBaseLabel(ET.DATE_PICKER, "时间", date_picker_index=1)   # 一个label后面跟多个相同元素例子

    search_btn = VueButton("检索")

    def __init__(self):
        super(SearchTools, self).__init__()


class Table(VueTable):
    checkbox = VueElements(class_name='ivu-checkbox-input', index=0)

    def __init__(self):
        super(Table, self).__init__()


class MacManagePage(Page):
    searchTools = SearchTools()
    table = Table()
